package com.ruoyi.logisticsaddress.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.logisticsaddress.mapper.LogisticsaddressMapper;
import com.ruoyi.logisticsaddress.domain.Logisticsaddress;
import com.ruoyi.logisticsaddress.service.ILogisticsaddressService;

/**
 * 配置地址Service业务层处理
 * 
 * @author sqlstudent
 * @date 2025-06-20
 */
@Service
public class LogisticsaddressServiceImpl implements ILogisticsaddressService 
{
    @Autowired
    private LogisticsaddressMapper logisticsaddressMapper;

    /**
     * 查询配置地址
     * 
     * @param addressId 配置地址主键
     * @return 配置地址
     */
    @Override
    public Logisticsaddress selectLogisticsaddressByAddressId(Long addressId)
    {
        return logisticsaddressMapper.selectLogisticsaddressByAddressId(addressId);
    }

    /**
     * 查询配置地址列表
     * 
     * @param logisticsaddress 配置地址
     * @return 配置地址
     */
    @Override
    public List<Logisticsaddress> selectLogisticsaddressList(Logisticsaddress logisticsaddress)
    {
        return logisticsaddressMapper.selectLogisticsaddressList(logisticsaddress);
    }

    /**
     * 新增配置地址
     * 
     * @param logisticsaddress 配置地址
     * @return 结果
     */
    @Override
    public int insertLogisticsaddress(Logisticsaddress logisticsaddress)
    {
        return logisticsaddressMapper.insertLogisticsaddress(logisticsaddress);
    }

    /**
     * 修改配置地址
     * 
     * @param logisticsaddress 配置地址
     * @return 结果
     */
    @Override
    public int updateLogisticsaddress(Logisticsaddress logisticsaddress)
    {
        return logisticsaddressMapper.updateLogisticsaddress(logisticsaddress);
    }

    /**
     * 批量删除配置地址
     * 
     * @param addressIds 需要删除的配置地址主键
     * @return 结果
     */
    @Override
    public int deleteLogisticsaddressByAddressIds(Long[] addressIds)
    {
        return logisticsaddressMapper.deleteLogisticsaddressByAddressIds(addressIds);
    }

    /**
     * 删除配置地址信息
     * 
     * @param addressId 配置地址主键
     * @return 结果
     */
    @Override
    public int deleteLogisticsaddressByAddressId(Long addressId)
    {
        return logisticsaddressMapper.deleteLogisticsaddressByAddressId(addressId);
    }
}
